ContainsKey Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Determines whether a given key is found in the dictionary.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public virtual bool ContainsKey(
	TKey key
)
Visual Basic (Declaration)
Public Overridable Function ContainsKey ( _
	key As TKey _
) As Boolean
Visual C++
public:
virtual bool ContainsKey (
	TKey key
)

Parameters

key
TKey
Key to look for in the dictionary.

Return Value

True if the key is present in the dictionary.

Remarks

The default implementation simply calls TryGetValue and returns what it returns.

See Also